@import "@/styles/variables.less";

.number-editor {
  width: 100%;
  background-color: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;

  .display-area {
    padding: 30px 20px;
    background-color: #fff;
    text-align: right;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .display-label {
      color: @default-color;
    }
    .display-value {
      font-size: @size-lg;
      margin-left: @size-base;
      font-weight: bold;
      letter-spacing: 1px;
      padding: 8px 24px;
      font-family: "Courier New", monospace;
      background-color: #ebeaea;
      width: 30vw;
      text-align: left;
      border-radius: @small-radius;
    }
    .radio-text{
        font-size: @size-sm;
        margin-left: 12px;
    }
  }

  .function-btn.confirm {
    background-color: @primary-color;
    line-height: ;
    color: white;
    height: @size-2;
    line-height: @size-2;
    font-size: @size-base;
    margin: 0;
  }

  .keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 20px;

    .number-btn,
    .function-btn {
      height: 80px;
      display: flex;
      width: 100%;
      justify-content: center;
      align-items: center;
      font-size: @size-sm;
      border-radius: 12px;
      border: none;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      transition: all 0.2s ease;

      &:active {
        transform: scale(0.96);
        background-color: #f0f0f0;
      }
    }

    .number-btn {
      color: #333;
      font-weight: 500;

      &.zero {
        grid-column: 2;
      }
    }

    .function-btn {
      background-color: #f5f5f5;
      color: #666;
      font-weight: bold;

      &.clear {
        background-color: #ffefef;
        color: #e74c3c;
      }

      &.backspace {
        font-size: 36px;
      }
    }
  }
}
